{#
    basic/localtoc.html
    ~~~~~~~~~~~~~~~~~~~

    Sphinx sidebar template: local table of contents.

    :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.

    Code to hide table-of-contents on pages, by setting in the field list at the top
:hide-local-toc: true
#}
{%- set hide_local_toc = false %}
{%- set hide_local_toc_key = 'hide-local-toc' %}
{%- if meta is defined %}
    {%- if hide_local_toc_key in meta %}
      {%- set hide_local_toc = meta[hide_local_toc_key] == 'true' %}
    {%- endif %}
{%- endif %}

{%- if display_toc and not hide_local_toc %}
  <h3 class="localtoc"><a href="{{ pathto(master_doc) }}">{{ html_short_title_toc }} {{ _('Table of Contents') }}</a></h3>
  {{ toc }}
{%- endif %}
